package com.lei2j.iterator;

import org.junit.Test;

public class TestComponent {

	@Test
	public void test1() {
		MenuComponent pancakeMenu = new Menu("PANCAKE HOUSE MEN", "Breakfast");
		MenuComponent dinerMenu = new Menu("DINER MENU", "Lunch");
		MenuComponent cafeMenu = new Menu("CAFE MENU","Dinner");
		MenuComponent dessertMenu = new Menu("DESSERT MENU","Dessert of course!");
		MenuComponent allMenu = new Menu("ALL menus", "All menus combined");
		allMenu.add(pancakeMenu);
		allMenu.add(dinerMenu);
		allMenu.add(cafeMenu);
		dinerMenu.add(new MenuItem("Pasta", "Sauce",3.89,true));
		dinerMenu.add(dessertMenu);
		dessertMenu.add(new MenuItem("Apple Pie", "APPle Pie with a flakey crust", 1.59, true));
		Waitress waitress = new Waitress(allMenu);
		waitress.print();
	}
}
